package lazyPB;

import probabilisticBroadcast.PbDeliver;
import se.sics.kompics.address.Address;

public class DataMessage extends PbDeliver {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4237131147219191201L;
	String message;
	private int sequence;
	boolean gossip;

	public DataMessage(Address src, String message, int sequence) {
		super(src);
		this.message = message;
		this.sequence = sequence;
		gossip = false;
	}
	
	public DataMessage(Address src, String message, int sequence, boolean gossip) {
		super(src);
		this.message = message;
		this.sequence = sequence;
		this.gossip = gossip;
	}
		
	public String getMessage() {
		return message;
	}

	public int getSequence() {
		return sequence;
	}

	public boolean isGossip() {
		return gossip;
	}
	
}
